<?php

/**
 * Steel
 * 
 * @author xuxuwei-
 * @version 
 */


class Application_Model_BusiInfo_Deliveryorder extends Base_BusiInfo{

	/**
	 * 标识符
	 * @var unknown_type
	 */
	protected $_id;
	/**
	 * 提货单编号
	 * @var unknown_type
	 */
	protected $_serialNumber;

	/**
	 * 结算方式  0：其他 1：现金 2:支票
	 * @var unknown_type
	 */
	protected $_settlementMode;

	/**
	 * 发票 1：未开， 2：已开
	 * @var unknown_type
	 */
	protected $_invoiceStatus;

	/**
	 * 发货仓库
	 * @var unknown_type
	 */
	
	protected $_entrepotInfo;

	/**
	 * 提货单日期
	 * @var unknown_type
	 */
	protected $_createDate;
	
	/**
	 * 有效期
	 * @var unknown_type
	 */
	protected $_expireDays;
	
	protected $_total;
	
	protected $_customerInfo;
	
	protected $_deliveryOrderDetailList;
	
	
	/**
	 * @return the $_deliveryOrderDetailList
	 */
	public function get_deliveryOrderDetailList() {
		if($this->_deliveryOrderDetailList == null) {
			$this->_deliveryOrderDetailList=array();
		}
		return $this->_deliveryOrderDetailList;
	}

	/**
	 * @param $_deliveryOrderDetailList the $_deliveryOrderDetailList to set
	 */
	public function set_deliveryOrderDetailList($_deliveryOrderDetailList) {
		$this->_deliveryOrderDetailList = $_deliveryOrderDetailList;
	}

	public function get_customerInfo() {
		if($this->_customerInfo == null) {
			$this->_customerInfo = new Application_Model_BusiInfo_Customer();
		}
		return $this->_customerInfo;
	}

	/**
	 * @param $_customerInfo the $_customerInfo to set
	 */
	public function set_customerInfo($_customerInfo) {
		$this->_customerInfo = $_customerInfo;
	}

	public function get_entrepotInfo() {
		if($this->_entrepotInfo == null) {
			$this->_entrepotInfo = new Application_Model_BusiInfo_Entrepot();
		}
		return $this->_entrepotInfo;
	}

	/**
	 * @param $_entrepotInfo the $_entrepotInfo to set
	 */
	public function set_entrepotInfo($_entrepotInfo) {
		$this->_entrepotInfo = $_entrepotInfo;
	}

	public function get_total() {
		return $this->_total;
	}

	/**
	 * @param $_total the $_total to set
	 */
	public function set_total($_total) {
		$this->_total = $_total;
	}

	public function __construct(array $options = null, array $convertRule = null)
	{
		parent::__construct($options, $convertRule);
	}
	
	
	/**
	 * @return the $_id
	 */
	public function get_id() {
		return $this->_id;
	}

	/**
	 * @return the $_serialNumber
	 */
	public function get_serialNumber() {
		return $this->_serialNumber;
	}

	/**
	 * @return the $_customerId
	 */
	public function get_customerId() {
		return $this->_customerId;
	}

	/**
	 * @return the $_settlementMode
	 */
	public function get_settlementMode() {
		return $this->_settlementMode;
	}

	/**
	 * @return the $_invoiceStatus
	 */
	public function get_invoiceStatus() {
		return $this->_invoiceStatus;
	}

	/**
	 * @return the $_entrepotId
	 */
	public function get_entrepotId() {
		return $this->_entrepotId;
	}

	/**
	 * @return the $_createDate
	 */
	public function get_createDate() {
		return $this->_createDate;
	}

	/**
	 * @return the $_expireDays
	 */
	public function get_expireDays() {
		return $this->_expireDays;
	}

	/**
	 * @param $_id the $_id to set
	 */
	public function set_id($_id) {
		$this->_id = $_id;
	}

	/**
	 * @param $_serialNumber the $_serialNumber to set
	 */
	public function set_serialNumber($_serialNumber) {
		$this->_serialNumber = $_serialNumber;
	}

	/**
	 * @param $_customerId the $_customerId to set
	 */
	public function set_customerId($_customerId) {
		$this->_customerId = $_customerId;
	}

	/**
	 * @param $_settlementMode the $_settlementMode to set
	 */
	public function set_settlementMode($_settlementMode) {
		$this->_settlementMode = $_settlementMode;
	}
	
	public function get_settlementModeText() {
		//结算方式  0：其他 1：现金 2:支票
		$arr = array(
			0=>"其他",
			1=>"现金",
			2=>"支票",
		);
		return $arr[$this->_settlementMode];
	}
	

	/**
	 * @param $_invoiceStatus the $_invoiceStatus to set
	 */
	public function set_invoiceStatus($_invoiceStatus) {
		$this->_invoiceStatus = $_invoiceStatus;
	}

	public function get_invoiceStatusText() {
		$arr = array (
			1 => "未开",
			2 => "已开",
		);
		return $arr[$this->_invoiceStatus];
	}
	
	/**
	 * @param $_entrepotId the $_entrepotId to set
	 */
	public function set_entrepotId($_entrepotId) {
		$this->_entrepotId = $_entrepotId;
	}

	/**
	 * @param $_createDate the $_createDate to set
	 */
	public function set_createDate($_createDate) {
		$this->_createDate = $_createDate;
	}

	/**
	 * @param $_expireDays the $_expireDays to set
	 */
	public function set_expireDays($_expireDays) {
		$this->_expireDays = $_expireDays;
	}


}

